/**
 * 下载文件
 * @author treeRoot
 * @param url 链接
 * @param fileName 文件名
 */

export async function DownloadMarkdownFile(url: string, fileName: string) {
    url = "http://127.0.0.1:8991" + url
    console.log(url, fileName)
    const markdownFileUrl = url;
    const link = document.createElement("a");
    link.href = markdownFileUrl;
    link.download = fileName; // 替换为实际的文件名
    link.click();
}